<%@page import="sosr.bean.Medecin"%>
<%@page import="sosr.serveur.IServeurRMI"%>
<jsp:useBean id="pageConfig" scope="session" class="bean.Page"></jsp:useBean>
<jsp:useBean id="pageCGI" scope="session" class="bean.Page"></jsp:useBean>
<jsp:useBean id="logon" scope="session" class="bean.Connexion"></jsp:useBean>
<%

int id = pageConfig.getAction_id();

IServeurRMI serv = logon.getSrvRMI();
serv.open();

Medecin p = serv.selectMedecin(id);

boolean res = serv.dropMedecin(id);

serv.close();
String msg = "";
if (res){
	msg = "L'utilisateur "+" "+p.getNom()+" "+p.getPrenom()+" est supprim&eacute;";

//	pageCGI.setMessage("Notification",msg);
}
else {
	msg = "Probl&egrave;me lors de la suppression de l'utilisateur "+p.getNom()+" "+p.getPrenom();

	pageCGI.setMessage("Erreur",msg);
	response.sendRedirect("mcacces.jsp");
}



%>
